package com.hellogood.yaohuo.shared.services;

import java.util.LinkedHashMap;
import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.yaohuo.shared.entity.Color;

@RemoteServiceRelativePath("ColorService")
public interface ColorService extends RemoteService{
	public static class Util {
		private static ColorServiceAsync instance;

		public static ColorServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(ColorService.class);
			}
			return instance;
		}
	}
	
	public List<Color> getAllColorList();
	
	public LinkedHashMap<String, String> getAllColorMap();
	
	public String createColor(Color c);
	
	public String deleteColor(Color c);
}
